]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
altTab: Ensure style of this._list before calculating icon sizes
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 20 Jun 2019 21:01:52 +0000 (23:01 +0200)
committerJonas Dreßler <verdre@v0yd.nl>
Mon, 1 Jul 2019 18:05:16 +0000 (20:05 +0200)
We're calculating icon sizes for the alt tab switcher early and at a
point where the style attributes of this._list are not loaded yet. To
make sure the value of this._list.spacing is correct, call
ensure_style() on this._list before accessing the spacing.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/587

js/ui/altTab.js

index ae9846552494f605fd3305e5660729d207c62bdc..6c9aaf1c1d9c6c553e2aecd0ac5e3ed7251800de 100644 (file)
@@ -728,6 +728,7 @@ class AppSwitcher extends SwitcherPopup.SwitcherList {
                 j++;
         }
         let themeNode = this._items[j].get_theme_node();
+        this._list.ensure_style();
 
         let iconPadding = themeNode.get_horizontal_padding();
         let iconBorder = themeNode.get_border_width(St.Side.LEFT) + themeNode.get_border_width(St.Side.RIGHT);